package cn.niit.pojo;

import org.springframework.stereotype.Component;
@Component
public class User {

    private String name;
    private Integer age;
    private Job jobtype;
    private Job salary;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setJobtype(Job jobtype) {
        this.jobtype = jobtype;
    }

    public void setSalary(Job salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", jobtype=" + jobtype +
                ", salary=" + salary +
                '}';
    }
}
